home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue.arc / DVSHADOW.C < prev    next >
C/C++ Source or Header  |  1990-01-09  |  2KB  |  45 lines

  1. /*=======================================================*/
  2. /*  DVSHADOW.C                                           */
  3. /*     functions dealing with shadow buffer              */
  4. /*                                                       */
  5. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  6. /*  May be freely copied for noncommercial use, so long  */
  7. /*  as this copyright notice remains intact, and any     */
  8. /*  changes are marked in the comment blocks preceding   */
  9. /*  functions.                                           */
  10. /*=======================================================*/
  11.  
  12. #include "tvapi.h"
  13.  
  14. /*======================================================*/
  15. /* DVshadow_start  start shadowing video buffer, return */
  16. /*                 info about shadow buffer             */
  17. /*   Ralf Brown 6/23/88                                 */
  18. /*======================================================*/
  19.  
  20. void far *DVshadow_start(int *rows,int *cols)
  21. {
  22.    _AX = 0x2B02 ;
  23.    _CX = 0x4445 ;
  24.    _DX = 0x5351 ;
  25.    geninterrupt(0x21) ;
  26.    *rows = _BH ;
  27.    *cols = _BL ;
  28.    return MK_FP(_DX,0) ;
  29. }
  30.  
  31. /*======================================================*/
  32. /* DVshadow_stop  stop shadowing vidoe buffer           */
  33. /*   Ralf Brown 6/23/88                                 */
  34. /*======================================================*/
  35.  
  36. void DVshadow_stop(void)
  37. {
  38.    _AX = 0x2B05 ;
  39.    _CX = 0x4445 ;
  40.    _DX = 0x5351 ;
  41.    geninterrupt(0x21) ;
  42. }
  43.  
  44. /* End of DVSHADOW.C */
  45.